package cn.xin.user.mapper;

import cn.xin.user.domain.Logininfo;
import cn.xin.base.mapper.BaseMapper;
import cn.xin.user.dto.AccountLoginDto;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xin
 * @since 2022-12-30
 */
public interface LogininfoMapper extends BaseMapper<Logininfo> {

    Logininfo findByName(AccountLoginDto dto);

    //跟据userid查询logininfo
    Logininfo findByUserId(Long userId);
}
